<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head th:replace="top::html"/> <!-- 引入样式 -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>数据字典</title>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<body class="fixed hold-transition skin-blue">
	<div class="wrapper">
		<!-- 引入表头 -->
		<div th:replace="tophtml::html"></div>
		<!-- 引入左边 -->
		<div th:replace="left::html"></div>

		<!-- 右侧列表展示 -->
		<div class="content-wrapper">
			<section class="content-header">
				<h1>数据字典<small></small></h1>
				<ol class="breadcrumb">
					<li><a href="/index"><i class="fa fa-dashboard"></i>用户中心</a></li>
					<li><a href="/dictiontry/findDictiontryList">数据字典</a></li>
				</ol>
			</section>
			<!-- 右侧表单部分 -->
			<section class="content container-fluid">
				<form id="from1" class="form-inline" th:action="@{/dictiontry/findDictiontryList}" method="get">
					<input type="hidden" name="pageNo" id="pageNo" />
					<div class="form-group">
						<label style="margin-left: 20px;">分组查询</label> 
						<select name="groupName" class="form-control" style="width: 200px;">
							<option value="">-请选择-</option>
							<option th:each="gn : ${groupNames}" th:value="${gn}" th:text="${gn}" th:selected="${gn} eq ${dictiontry.groupName}"></option>
						</select>
					</div>
					<div class="form-group">
						<label>值</label> 
						<input style="width: 200px;" name="worth" type="text" th:value="${dictiontry.worth}" class="form-control"/>
					</div>
					<button type="submit" class="btn btn-primary" style="margin-left: 40px;">搜索</button>
					<button type="reset" style="margin-left: 40px;" class="btn btn-primary">重置</button>
					<button type="button" class="btn btn-primary" onclick="javascript:window.location.href='/dictiontry/addView'" style="margin-left: 40px;">添加</button>
				</form><br/>
				<!-- 右侧列表部分 -->
				<div class="box">
					<div class="box-body">
						<table class="table table-bordered">
							<tbody>
								<tr>
									<th>唯一标识</th>
									<th>names</th>
									<th>值</th>
									<th>分组名称</th>
									<th>备注</th>
									<th>操作</th>
								</tr>
								<tr th:each="dictiontry, stat : ${pageInfo.list}">
		                            <td th:text="${dictiontry.pid}"></td>
		                            <td th:text="${dictiontry.names}"></td>
		                            <td th:text="${dictiontry.worth}"></td>
		                            <td th:text="${dictiontry.groupName}"></td>
		                            <td th:text="${dictiontry.remark1}"></td>
		                            <td>
		                            	<a th:href="@{/dictiontry/updateView(groupName=${dictiontry.groupName},pid=${dictiontry.pid},worth=${dictiontry.worth})}">修改</a>
		                            </td>
		                        </tr>
	                        </tbody>
						</table>	
					</div>
					<!-- 页脚、分页 -->
					<div th:replace="page::html"></div>
					<!-- 返回按钮 -->
					<div style="width:240px; height: 30px; position:fixed;left:790px;bottom:10px;">
						<button type="button" class="btn btn-primary" onclick="window.history.go(-1)">返回上一级</button>
					</div>
				</div>
			</section>
		</div><!-- 右侧部分结束 -->

		<!-- 引入页脚 -->
		<div th:replace="footer::html"></div>
		<div class="control-sidebar-bg"></div> 
	</div>

	<!-- 引入js -->
	<div th:replace="bottom::html" ></div>
</body>
</html>